package com.woniu.microworkorderserver.workgroupmag.controller;

import com.github.pagehelper.PageInfo;
import com.woniu.microcommonsserver.entity.WorkgroupUserInfoEntity;
import com.woniu.microcommonsserver.param.PageRequest;
import com.woniu.microcommonsserver.param.ResponseMsg;
import com.woniu.microworkorderserver.workgroupmag.service.WorkGroupUserService;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/workGroupUser")
public class WorkGroupUserController {

    @Resource
    private WorkGroupUserService workGroupUserServiceImpl;

    @RequestMapping(value = "/page",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseMsg findPage(PageRequest request){
        PageInfo<WorkgroupUserInfoEntity> info = workGroupUserServiceImpl.findPage(request);
        System.out.println(info.getList());
        return null;
    }
}
